package com.grudesign.stutrip.common;

import lombok.Data;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

@Data
public class ReturnInfo implements Serializable {

    private String code;
    private String msg;
    private Map<String,Object> map = new HashMap<>();

    public ReturnInfo(String code,String msg){
        this.code =code;
        this.msg =msg;
    }
    public ReturnInfo data (String key, Object value){
        this.map.put(key,value);
        return this;
    }
    public ReturnInfo data(Map<String,Object> map){
        this.setMap(map);
        return this;
    }
}
